// 请求地址
const baseUrl = 'http://119.45.161.250:8080'
// const baseUrl = '/api'
const imgUrl = 'http://119.45.161.250:8080/upload/'
// const imgUrl = '/imgUrl'
const videoUrl = 'http://119.45.161.250:8080/upload/'
// const videoUrl = '/videoUrl'
/* 首页轮播图 */
// 平台配置

const getParam = function (path, name) {
	var reg = new RegExp("(^|\\?|&)" + name + "=([^&]*)(\\s|&|$)", "i");
	if (reg.test(path)){
		return unescape(RegExp.$2.replace(/\+/g, " "));
	}
	return "";
}
const tcode = getParam(window.location.href, 'tcode')  || 'admin'
export default {
	baseUrl,
	imgUrl,
	videoUrl,
	tcode
}
